package com.shujia.util;

import java.io.BufferedReader;
import java.io.FileReader;
import java.util.Properties;

public class PropertiesTool {
    private PropertiesTool(){}

    public static String getInfo(String key){
        String s = "";
        try {
            Properties properties = new Properties();
            properties.load(new BufferedReader(new FileReader("D:\\projects\\IDEAProjects\\bigdata31\\redis\\src\\main\\resources\\aliAccess.properties")));
            s = properties.getProperty(key);
        }catch (Exception e){
            e.printStackTrace();
        }
        return s;
    }
}
